/*
 * @Author: xiaxia
 * @Description: 
 * @Date: 2024-06-19 11:27:26
 * @LastEditTime: 2024-06-28 15:10:12
 * @FilePath: \project\src\components\index.ts
 */
// svg
import Category from './Category/index.vue'
import SvgIcon from './SvgIcon/index.vue'
// elment icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const allGlobalComponent = { SvgIcon, Category }
export default {
  install(app: any){
    Object.keys(allGlobalComponent).forEach(key => {
      app.component(key, allGlobalComponent[key])
    });
    // elment icon 全局注册
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  }
}